Ext.define('MyApp.view.systeminfo.SystemInfoForm', {
	extend: 'Ext.window.Window',
	alias: 'widget.systemInfoForm',
	initComponent: function(){
		Ext.apply(this, {
			layout: 'column',
			autoScroll: true,
			modal: true,//遮盖
			title : '增加新属性',
			maximizable: true,//最大化
			resizable: false,
			items: [{
				xtype: 'form',
				bodyPadding: 10,//内边距
				defaultType: 'textfield',
				fieldDefaults: {
					allowBlank: false,//不允许为空
					anchor: '100%',
					afterLabelTextTpl: Ext.myUtil.required,
					labelAlign: 'right',//标签在右边
					msgTarget: 'side',
					labelWidth: 120//标签长度，
					
				},
				items: [{
						name: 'key',
						vtype:'alphanum',
						fieldLabel: '属性标示'
					},
					{
						name: 'value',
						//vtype:'alphanum',
						fieldLabel: '属性值'
					},
					{
						name: 'description',
						fieldLabel: '属性描述'
					}
				]
			}],
			buttonAlign: 'center',
			buttons: [{
				text: '保存',
				itemId: 'save',
				glyph:0xf0c7
			},{
				text: '取消',
				itemId: 'cancel',
				glyph:0xf00d
			}]
		});
		this.callParent(arguments);
	}
});